const initState = {
  count: 0,
};
export default function reducer(state = initState, action) {
  switch (action.type) {
    case "increment":
      let inCount = state.count + action.count;
      return { ...state, count: inCount };
    case "decrement":
      let deCount = state.count - action.count;
      return { ...state, count: deCount };
    default:
      return state;
  }
}
